
$(function() {
	$("select[name='redisSelect']").change(function(){
		$("#key").val($("#redisSelect").val());
	});
})
function delCache() {
	var key=$("input[name='key']").val();
	if (key=="") {
		$.error("key不能为空.");
		return;
	}
	$.ajax({
		type: "POST",  
		url: ctx+"/admin/clearcache/deleteRedisCache", 
		data:{key:key}, 
		dataType: 'json', 
		success: function(data) {
			if (data.success) {
					$.success('操作成功');
			} else {
				$.error(data.msg);
			}
		}
	});
}


